max_mag(other, context=None)self 和 other 中的較大絕對值。Decimal('-3.14').max_mag(Decimal('2.71')) 回傳 Decimal('-3.14')。Decimal 值的絕對值,並返回較大者。min(other, context=None)self 和 other 中的較小者。Decimal('2.71').min(Decimal('3.14')) 回傳 Decimal('2.71')。Decimal 值,並返回較小者。min_mag(other, context=None)self 和 other 中的較小絕對值。Decimal('2.71').min_mag(Decimal('-3.14')) 回傳 Decimal('2.71')。Decimal 值的絕對值,並返回較小者。next_minus(context=None)self 小的下一個 Decimal 值。Decimal('1.0').next_minus() 回傳 Decimal('0.9999999999999999')。Decimal,有助於數值精度處理。next_plus(context=None)self 大的下一個 Decimal 值。Decimal('1.0').next_plus() 回傳 Decimal('1.0000000000000001')。Decimal,有助於數值精度處理。
next_toward(other, context=None)other 的下一個 Decimal 值。Decimal('1.0').next_toward(Decimal('2.0')) 回傳 Decimal('1.0000000000000001')。Decimal,便於精確數值控制。normalize(context=None)Decimal 轉換為標準化形式,消除尾隨零。Decimal('12').normalize() 回傳 Decimal('12')。